import request from '@/utils/request'

// 设备统计
export function getDeviceStatistics(params) {
  return request({
    url: '/operation/api/equipment/statistics',
    method: 'GET',
    params
  })
}
// 设备运行状态趋势
export function getDeviceRunStatusTrend(params) {
  return request({
    url: '/operation/api/equipment/runStatusTrend',
    method: 'GET',
    params
  })
}

// 实时报警
export function getRealTimeAlarm(params) {
  return request({
    url: '/operation/api/equipment/realTimeAlarm',
    method: 'GET',
    params
  })
}

// 能耗分析
export function getEnergyConsumptionAnalysis(params) {
  return request({
    url: '/operation/api/equipment/energyAnalysis',
    method: 'GET',
    params
  })
}

// 设备维修记录
export function getDeviceRepairRecord(params) {
  return request({
    url: '/operation/api/equipment/maintenanceRecord',
    method: 'GET',
    params
  })
}